<html>
<head>
<title>Football betting advice</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="<?php echo base_url();?>resources/css/simple-layout.css" />
	<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-34655323-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<div id="logo">
				FBA
				<h1>Football betting advice</h1>
			</div>
			<div id="headerRight">
				<div id="searchBox"></div>
				<!--  <div id="mainMenu">
					<ul>
						<li><a href="#">Home</a></li>
						<li><a href="#">About</a></li>
					</ul>
				</div>-->
			</div>

		</div>
		<div id="headerLine"></div>
		<div id="leftNav">
			<!-- <div id="userMenu">
				User Menu
				<ul>
					<li><a href="#">Register</a></li>
					<li><a href="#">My account</a></li>
					<li><a href="#">bla bla this</a></li>
					<li><a href="#">bla bla that</a></li>
				</ul>
			</div>-->
			<!--  <div id="ads">google ads</div>
			<div id="minRecomend">high odds games / system games</div>-->
		</div>
		<!--<div id="rightNav">Right</div>-->
		<div id="centerBody">
			<div id="centerText">
				<div class="prediction-list">
					<h1>
						<label>Top outcome predictions</label>
					</h1>
					<div class="block dark">
						<div class="table-text" style="width: 20%">League</div>
						<div class="table-text" style="width: 28%; text-align: right;">HOME</div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
						<div class="table-text" style="width: 20%">Prediction</div>
					</div>
                      <?php foreach ($recomended as $item):?>
		      			<div class="block light">
						<div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
						<div class="table-text" style="width: 28%; text-align: right;"><?php echo $item->getHomeTeam()?></div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;"><?php echo $item->getAwayTeam()?></div>
						<div class="table-text" style="width: 20%"><?php echo $item->getTip()?></div>
					</div>
                      <?php endforeach;?>
                      <div class="block dark">
						<div class="prediction-footer">Winner prediction</div>
					</div>
				</div>
			</div>
			<div id="centerPanel">

				<div class="prediction-list"
					style="width: 260px; margin-left: 10px;">
					<h1>
						<label>Goals 3+</label>
					</h1>
					<div class="block dark">
						<div class="table-text" style="width: 20%">League</div>
						<div class="table-text" style="width: 28%; text-align: right;">HOME</div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
						<div class="table-text" style="width: 20%">Predic.</div>
					</div>
                      <?php foreach ($recomendedOver as $item):?>
		      <div class="block light">
						<div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
						<div class="table-text" style="width: 28%; text-align: right;"><?php echo substr($item->getHomeTeam(), 0, 9);?></div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;"><?php echo substr($item->getAwayTeam(), 0, 9)?></div>
						<div class="table-text" style="width: 20%"><?php echo '3+';?></div>
					</div>
                      <?php endforeach;?>
                      <div class="block dark">
						<div class="prediction-footer">3+ goals prediction</div>
					</div>
				</div>
				
				<div class="prediction-list"
					style="width: 260px; margin-left: 10px;">
					<h1>
						<label>Goals 0-2</label>
					</h1>
					<div class="block dark">
						<div class="table-text" style="width: 20%">League</div>
						<div class="table-text" style="width: 28%; text-align: right;">HOME</div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
						<div class="table-text" style="width: 20%">Predic.</div>
					</div>
                      <?php foreach ($recomendedUnder as $item):?>
		      <div class="block light">
						<div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
						<div class="table-text" style="width: 28%; text-align: right;"><?php echo substr($item->getHomeTeam(), 0, 9);?></div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;"><?php echo substr($item->getAwayTeam(), 0, 9)?></div>
						<div class="table-text" style="width: 20%"><?php echo '0-2';?></div>
					</div>
                      <?php endforeach;?>
                      <div class="block dark">
						<div class="prediction-footer">0-2 goals prediction</div>
					</div>
				</div>




			</div>
			<div id="centerPanel">

				<div class="prediction-list"
					style="width: 260px; margin-left: 10px;">
					<h1>
						<label>All predictions</label>
					</h1>
					<div class="block dark">
						<div class="table-text" style="width: 20%">League</div>
						<div class="table-text" style="width: 28%; text-align: right;">HOME</div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;">AWAY</div>
						<div class="table-text" style="width: 20%">Predic.</div>
					</div>
                      <?php foreach ($games as $item):?>
		      <div class="block light">
						<div class="table-text" style="width: 20%"><?php echo $item->getLeague()?></div>
						<div class="table-text" style="width: 28%; text-align: right;"><?php echo substr($item->getHomeTeam(), 0, 9);?></div>
						<div class="table-text" style="width: 4%">-</div>
						<div class="table-text" style="width: 28%; text-align: left;"><?php echo substr($item->getAwayTeam(), 0, 9)?></div>
						<div class="table-text" style="width: 20%"><?php echo $item->getTip()?></div>
					</div>
                      <?php endforeach;?>
                      <div class="block dark">
						<div class="prediction-footer">Winner prediction</div>
					</div>
				</div>


			</div>

		</div>
		<div id="footer">&copy; football-betting-advice.com 2012 - All
			predictions calculated in {elapsed_time}s</div>
	</div>
</body>
</html>